﻿using System.ComponentModel.DataAnnotations;

namespace OperationPlugins.Validators.DataAnnotations
{
    public interface IUsePluginValidatorsAttributeAsDataAnnotationsValidationResult
    {
        /// <summary>
        /// Converts a <see cref="MessageContainer"/> object to <see cref="System.ComponentModel.DataAnnotations.ValidationResult"/> object.
        /// </summary>
        /// <param name="result">The <see cref="MessageContainer"/> object.</param>
        /// <returns>The <see cref="System.ComponentModel.DataAnnotations.ValidationResult"/> object.</returns>
        ValidationResult AsDataAnnotationsValidationResult(MessageContainer result);        
    }
}